package com.xyt.imei.core.service;

import java.util.List;

import org.apache.poi.ss.usermodel.Workbook;

import com.luminary.common.framework.core.model.Pagination;
import com.luminary.common.framework.service.GenericService;
import com.xyt.imei.core.model.dto.WaitReciveUndoDTO;
import com.xyt.imei.core.model.po.Store;
import com.xyt.imei.core.model.po.Trace;
import com.xyt.imei.core.model.po.User;
import com.xyt.imei.core.model.vo.StoreVO;

public interface StoreService extends GenericService<Store, String> {

	StoreVO findByImeiNo(String imeiNo) throws Exception;
	
	Pagination<StoreVO> findPageBybranch(Pagination<Store> page) throws Exception;
	
	Pagination<StoreVO> findWaitRecivePageBySource(Pagination<Store> page) throws Exception;
	
	Pagination<StoreVO> findWaitRecivePageByTarget(Pagination<Store> page) throws Exception;
	
	boolean store(Store store, User user) throws Exception;
	
	boolean store(List<Store> store, List<Trace> trace, User user) throws Exception;
	
	boolean undo(List<WaitReciveUndoDTO> waitReciveUndoDTO, User user) throws Exception;
	
	boolean recive(List<WaitReciveUndoDTO> waitReciveUndoDTO, User user) throws Exception;
	
	Workbook export() throws Exception;
	
}
